package org.zdw.data.structure.util;

public class ExecutionCounter {
    private static class LazyHolder{
        private static  ExecutionCounter INSTANCE = new ExecutionCounter();
    }

    private ExecutionCounter(){

    }

    public static final ExecutionCounter getInstance(){
        return ExecutionCounter.LazyHolder.INSTANCE;
    }

    private long count;

    public void increase(){
        count++;
    }

    public long getCount(){
        return count;
    }
}
